package one.stand.controller;

import one.stand.model.ResultModel;
import one.stand.request.CompanyAccountRequest;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: QIK
 * @CreateDate: 2019/5/13 16:08
 */
@RestController
@RequestMapping("component")
public class ComponentController extends BaseController {

    @PostMapping("componentCallBack")
    public ResultModel componentCallBack(@RequestBody CompanyAccountRequest request) {
        return componentService.componentCallBack(request);
    }

    @PostMapping("componentloginpage")
    public ResultModel<String> componentloginpage(@RequestBody CompanyAccountRequest request) {
        return componentService.componentloginpage(request);
    }
    @PostMapping("getAuthorizerInfo")
    public ResultModel getAuthorizerInfo(@RequestBody CompanyAccountRequest request) {
        return componentService.getAuthorizerInfo(request);
    }
}
